Repository navigation
Retain checkpoints across later snapshots until their prefixes are cut - #158
Merged
joelteply merged 8 commits intoNov 20, 2026
Merged
Conversation
Accept interleaved optional arguments in Qwen tool calls
Author
|
Exact-head review of 91f36f6 found a checkpoint validity defect in native sliding-window overwrite. apply_ubatch removes an occupied cell directly. When replacing the oldest contiguous positions, the later seq_rm purge can be skipped, so the earlier checkpoint can still appear valid after its KV is gone. Hold this merge pending a fix and fault replay. Placement also simulates apply_ubatch during prepare and restores only selected cell metadata. Revoke receipts for committed loss and preserve them when a simulated placement rolls back. Cover both cases and successful reuse of an unaffected checkpoint. |
Invalidate sliding-window checkpoints when their cells are overwritten
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A later view snapshot used to invalidate an earlier head snapshot through a single per-lineage serial. Each checkpoint now owns a position receipt. The cells carry weak references across stream swaps and revoke the affected positions on a cut. All allocation happens during preparation.
The M5 hybrid fixture rewound to the earlier head, rewrote the suffix, refused the stale view, and accepted the new checkpoint. It passed on 6 attention and 24 recurrent layers. The same deployed artifact returned to serving after replay.
Across adjacent candidate versions, each observed for exactly 900 seconds with four residents, rewind refusals fell from 6 to 0. The new window had 41 rewinds and 2 divergence restarts. Wall throughput rose from 9.77 to 14.00 tokens/s, decode from 33.50 to 33.05, and reuse from 54.8% to 77.0%. The context window also grew. Empty outputs rose from 17 to 29, and durable adoption remains unverified. Please review lineage, cut invalidation and receipt lifetime at the exact head.